Skip to content

add bbox_list params#200

Merged
xiong-binbin merged 3 commits intodashscope:mainfrom
mose-x:fix/wan27_i2i_add_bbox_list
Apr 7, 2026
Merged

add bbox_list params#200
xiong-binbin merged 3 commits intodashscope:mainfrom
mose-x:fix/wan27_i2i_add_bbox_list

Conversation

@mose-zm
Copy link
Copy Markdown
Contributor

@mose-zm mose-zm commented Apr 7, 2026

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the 'wan2.7-image-pro' model by adding a bboxList field to ImageGenerationParam and providing a usage sample. The review feedback suggests adding Javadoc to clarify the complex nested structure of bboxList and using a constant for the model name to improve maintainability.

public static void wan27ImageUsage() throws NoApiKeyException, UploadFileException {
ImageGenerationParam param = ImageGenerationParam.builder()
.apiKey(DASHSCOPE_API_KEY)
.model("wan2.7-image-pro")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The model name "wan2.7-image-pro" is hardcoded as a string literal. It is recommended to define this as a constant in the ImageGeneration.Models class to maintain consistency with other models and avoid magic strings throughout the codebase.

@xiong-binbin xiong-binbin merged commit 87b12ba into dashscope:main Apr 7, 2026
3 checks passed
@mose-zm mose-zm deleted the fix/wan27_i2i_add_bbox_list branch April 7, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants